<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增进贡管理')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-list-add">
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">信士ID：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="personId" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">
                <label class="col-sm-3 control-label">信士姓名：</label>
                <div class="col-sm-8">
                    <div class="input-group" style="width: 100%">
                        <select name="personId" class="form-control m-b" th:with="personList=${personList}">
                            <option th:each="person : ${personList}" th:text="|${person.personName},${person.personPhone}|" th:value="${person.id}"></option>
                        </select>
                    </div>
                </div>
            </div>

            <div class="form-group">    
                <label class="col-sm-3 control-label">金额：</label>
                <div class="col-sm-8">
                    <input name="price" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">进贡商品：</label>
                <div class="col-sm-8">
                    <input name="goods" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "tribute/list"
        $("#form-list-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-list-add').serialize());
            }
        }
    </script>
</body>
</html>